package com.lucher.mes.dao;

import java.util.List;

import com.lucher.mes.po.Problem;
import com.lucher.mes.po.Workorderproblem;
import com.lucher.mes.po.Workorderproblem;
import org.apache.ibatis.annotations.Param;

public interface WorkorderproblemMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Workorderproblem record);

    int insertSelective(Workorderproblem record);

    Workorderproblem selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Workorderproblem record);

    int updateByPrimaryKey(Workorderproblem record);
    
    //自定义接口
    List<Workorderproblem> findByList(Workorderproblem record);
    List<Workorderproblem> findByListForPage(Workorderproblem record);
    int findByCount(Workorderproblem record);
    int deleteByOrdercode(String ordercode);


    //根据问题代码修改跟新产品应用了的问题信息
    int updateByPrimaryCode (@Param("oldCode")String oldCode, @Param("problem")Problem problem);

}